package com.zhisheng.mapper;

import com.zhisheng.pojo.Dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 部门管理
 */
@Mapper
public interface DeptMapper {
    //查询所有部门
    @Select("select * from dept")
    public  List<Dept> selectAll();
    //根据id删除部门
    @Delete("delete from dept where id = #{id}")
    int deleteById(Integer id);
}
